package com.newcoin.xgb.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class LoginDto {

    @NotBlank(message = "请输入手机号")
    @Pattern(regexp = "^[1][3456789][0-9]{9}$", message = "手机号格式不正确")
    private String mobile;

    @NotBlank(message = "请输入密码")
    private String password;
}
